package tutorial;

import org.telegram.telegrambots.meta.TelegramBotsApi;
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
import org.telegram.telegrambots.updatesreceivers.DefaultBotSession;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import tutorial.bot.Bot;
import tutorial.utils.JedisUtils;

/**
 * @Author: dingziyuan
 * @Date: 2023/11/1/001 14:37
 * @Description: *
 */
public class Main {


    public static void main(String[] args) throws TelegramApiException {
        JedisUtils.jedis = new Jedis("127.0.0.1", 6379,5000);
        System.out.println("已连接redis==========");

        TelegramBotsApi botsApi = new TelegramBotsApi(DefaultBotSession.class);

        final Bot bot = new Bot();
        botsApi.registerBot(bot);

    }
}
